<?php if( $data['is_ajax'] !== 1 ) :?>
	<include file="inc:header" />
<div class="page" id='{$data.act}'>
	<include file="inc:title" />
	<div class="content infinite-scroll pull-to-refresh-content" now_page="1"  data-distance="{$data.rs_count}"  all_page="{$data.page.page_total}" ajaxurl="{:U('deals/index')}">
	<!--投资借款列表-->
	<ul class="recommended_nav_2 invest">
<?php endif; ?>

	<!-- 默认的下拉刷新层 -->
    <div class="pull-to-refresh-layer" all_page="{$data.page.page_total}" >
        <div class="preloader"></div>
        <div class="pull-to-refresh-arrow"></div>
    </div>
<?php //var_dump($data);?>
	<foreach name="data['item']" item="deal" >
			<li class="clearfix" onclick="RouterURL('{:U('deal/index',array('id'=>$deal['id']))}','#Deal',2);">
					<div class="novice f_l">
						<if condition="$deal.is_advance eq 1 and $deal.start_time gt TIME_UTC">
						<img src="./Public/images/novice_0.png" width="100%" height="100%"/>
						<elseif condition="$deal.is_new eq 1">
						<img src="./Public/images/novice.png" width="100%" height="100%"/>
						</if>
					</div>
					<div class="title_nav bb1">
						<if condition=" $deal.is_wait eq 1"><span class="state  c666666">
			            	<else/>
							<if condition="$deal.deal_status eq 0"><span class="state  c666666"></if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time gt 0"><span class="state  c56b1ea"></if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time lt 0"><span class="state  c666666"></if>
							<if condition="$deal.deal_status eq 2"><span class="state  ea544a"></if>
							<if condition="$deal.deal_status eq 3"><span class="state  c666666"></if>
							<if condition="$deal.deal_status eq 4"><span class="state  c66d191"></if>
							<if condition="$deal.deal_status eq 5"><span class="state  c666666"></if>
						</if>
						<if condition="$deal.is_wait eq 1">未开始
							<else/>
							<if condition="$deal.deal_status eq 0">等待材料</if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time gt 0">进行中</if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time lt 0">已过期</if>
							<if condition="$deal.deal_status eq 2">已满标</if>
							<if condition="$deal.deal_status eq 3">已流标</if>
							<if condition="$deal.deal_status eq 4">还款中</if>
							<if condition="$deal.deal_status eq 5">已还清</if>
						</if>
							</span>
						<span class="name" style="color:#000;width:55%">{$deal.name}</span>
						<span class="r_state" style="color:#999;font-size:13px">{$deal.loantype|loantypename="1"}</span>
					</div>
					<div class="con_height" style="text-align:center">
						<div class="  w_b  pt tc" >
							<div class=" tl lv" style="padding-left:0px">
								<i class="big" style="color:#f43731;">{$deal.rate}</i>
								<i class="unit" style="color:#f43731;font-size:1.2rem;">%</i>
								<p style="color:#999;font-size:12px">年利率</p>
							</div> 
						<div class=" tl je" style="width:15%;">
						<i class="small" style="font-size:15px;color:#000;line-height:2rem">{$deal.borrow_amount|replacemoney}</i><i class="unit" style="font-size:15px;color:#000">万</i>
						<p style="color:#999;font-size:12px">金额</p>
						</div>
							<div class=" tl sj" style="width:14%;"><i class="small" style="font-size:15px;color:#000;line-height:2rem">{$deal.repay_time}</i><i class="unit" style="font-size:15px;color:#000"><if condition="$deal.repay_time_type eq 1">月<else/>天</if></i>
							<p style="color:#999;font-size:12px">期限</p>
							</div>
						<div class="w_b_f_1"></div>
							<div  class="progress-radial_parent ">
								<div class='progress-radial  progress-<if condition="($deal.deal_status gt 4)">100<else/>{$deal.progress_point|round=0}</if>
							<if condition=" $deal.is_wait eq 1"> c999999
			            	<else/>
							<if condition=" $deal.deal_status eq 0">  c999999 </if>
							<if condition=" $deal.deal_status eq 1 and $deal.remain_time gt 0">  c56b1ea </if>
							<if condition=" $deal.deal_status eq 1 and $deal.remain_time lt 0">  c999999 </if>
							<if condition=" $deal.deal_status eq 2">  ea544a </if>
							<if condition=" $deal.deal_status eq 3">  c999999  </if>
							<if condition=" $deal.deal_status eq 4">  c66d191  </if>
							<if condition=" $deal.deal_status eq 5">  c999999  </if>
							</if>
							'><b></b></div>
							</div>
					</div>
						</div>
						
				
			</li>
	</foreach>
<?php if( $data['is_ajax'] !== 1 ) :?>
</ul>
<!-- 加载提示符 -->
<div class="infinite-scroll-preloader" style="display:none;">
  <div class="preloader">
  </div>
</div>
<include file="inc:footer" />
</div>
<?php endif; ?>